/*
 * @Description: 表单校验规则
 * @Author: chenju
 * @Date: 2022-03-22 17:46:03
 * @LastEditors: chenju
 * @LastEditTime: 2022-03-24 11:21:41
 */
export const rules = {
  type: [
    {
      required: true,
      message: '请选择类型',
      trigger: ['submit', 'change']
    }
  ],
  name: [
    {
      required: true,
      message: '请输入名称',
      trigger: ['submit', 'change']
    }
  ]
  // description: [
  //   {
  //     required: true,
  //     message: '请输入描述',
  //     trigger: ['submit', 'change']
  //   }
  // ]
};
